import java.util.ArrayList;

/**
 * Created with IntelliJ IDEA.
 * User: Thoughtworker
 * Date: 10/10/13
 * Time: 5:17 PM
 * To change this template use File | Settings | File Templates.
 */
public class Team {
    public final String teamName;
    public final ArrayList<Coach> coachesList;

    public Team(String teamName, ArrayList<Coach> coachesList) {
        this.teamName = teamName;
        this.coachesList = coachesList;
    }

    public String getCoaches() {
        String coachesInfo = "";
        for (Coach coach : coachesList) {
            coachesInfo += coach.name + " " + coach.title +" ";
        }
        return coachesInfo;
    }
}
